package org.rc.dto;

import lombok.Data;
import org.rc.entity.Sxzj;


@Data
public class SxzjPageRes {
    private Long id;
    private String name;
    private String ip;
    private Integer port;
    private String userName;
    private String password;
    private String roomName;

    public static SxzjPageRes getInstance(Sxzj sxzj){
        SxzjPageRes sxjPageRes = new SxzjPageRes();
        sxjPageRes.setId(sxzj.getId());
        sxjPageRes.setName(sxzj.getName());
        sxjPageRes.setIp(sxzj.getIp());
        sxjPageRes.setPort(sxzj.getPort());
        sxjPageRes.setUserName(sxzj.getUserName());
        sxjPageRes.setPassword(sxzj.getPassword());
        return sxjPageRes;
    }
}
